﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace QuanLyThuNgan
{
    public partial class rpt_ThuTienNoiTru : DevExpress.XtraReports.UI.XtraReport
    {
        public rpt_ThuTienNoiTru()
        {
            InitializeComponent();
        }
        public string donvithu, sohoso, sobn, hotenbn, ngayin, tuoi, diachi, donvikhambenh, sonhapvien
            , sotienthu, solan, khoanthu, sotienbbangchu, tennguoilapphieu, ngaythang, gioingay, tenthungan;
        private void CreateData()
        {
            xrDonViThu.Text = donvithu;
            xrLabelSoHoSo.Text = sohoso;
            xrLabelshs.Text = cbarcode.Bar128(sohoso);
            xrSoBN.Text = sobn;
            xrHoTenBN.Text = hotenbn;
            xrNgayIn.Text = ngayin;
            xrTuoi.Text = tuoi;
            xrDiaChi.Text = diachi;
            xrDonViKhamBenh.Text = donvikhambenh;
            xrSoNhapVien.Text = sonhapvien;
            xrSoTienThu.Text = sotienthu;
            xrSoLanThu.Text = solan;
            xrKhoanThu.Text = khoanthu;
            xrSoTienBAngChu.Text = sotienbbangchu;
            xrTenNguoiLapPhieu.Text = tennguoilapphieu;
            xrTenThuNgan.Text = tenthungan;
            xrNgayThangNam.Text = ngaythang;
            xrGioi_NgayIn.Text = gioingay;
        }
        private void rpt_ThuTienNoiTru_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            CreateData();
        }


    }
}
